<script language="JavaScript" type="text/javascript" src="js/date.js"></script>
<script language="JavaScript" type="text/javascript" src="js/check_basic.js"></script>
	<div id="comm_cms_head">
			<h2>UpLoad PDF Books</h2>
	</div>
	<div id="comm_cms_center" style="border:1px solid #FFF">
<p id="notice"></p>
<form action="<?php echo site_url('welcome/insert_basic_msg')?>" name="form1" method="post" enctype="multipart/form-data">
	<table>
		<tr><td >App Store Id:</td><td id="upload_td"><input type="text" name="prod_id" id="prod_id" onblur="return check_pid()"/></td></tr>
		<tr><td>ISBN:</td><td ><input type="text" name="isbn" id="isbn" onblur="return check_isbn()"/></td></tr>
		<tr><td>Book Name:</td><td ><input type="text" name="name" id="name" /></td></tr>
		<tr><td>Author:</td><td ><input type="text" name="author" id="author" /></td></tr>
		<tr><td>Publisher:</td><td ><input type="text" name="publisher" id="publisher" /></td></tr>
		<tr><td>Price:</td><td ><input type="text" name="price" id="price" value="0.99"/></td></tr>
		<tr><td>Publish Time:</td>
		<td >
		
		<select name=YYYY onchange="YYYYDD(this.value)">
		<option value="">--Year--</option>
		</select>
		<select name=MM onchange="MMDD(this.value)">
		<option value="">--Month--</option>
		</select>
		<select name=DD>
		<option value="">--Day--</option>
		</select>

		</td></tr>
		<tr><td>Book Description:</td><td ><textarea name="describe" rows="15" cols="90" ></textarea></td></tr>
		<tr>
			<td>Select Category:</td>
			<td >
			<select name="tree1" id="tree1" onchange="return second_cate()" style="width:200px;">
				<option value=''>Select First Categoty</option>
				<?php foreach ($cate as $msg):?>
					<?php echo "<option  value=\"".$msg['classify_id']."\" />".$msg['type']."</option>";?>
				<?php endforeach;?>
			</select>
			<select name="tree2[]" id="tree2" multiple="multiple" style="width:200px;">
			<option>Select Second Categoty</option>
			</select>
			</td>
		</tr>
		<tr>
		<td>Star:</td>
		<td >
			<input type="radio" name="star" value="1" /> One
			<input type="radio" name="star" value="2" /> Two
			<input type="radio" name="star" value="3" /> Three
			<input type="radio" name="star" value="4" /> Four
			<input type="radio" name="star" value="5" checked="checked"/> Five
		</tr>
		<tr><td><input type="submit" name="submit" id="submit" value="Submit" class="button" onclick="return check()" /></td><td ><input type="reset" name="reset" id="reset" class="button" value="Reset"/></td></tr>	
	</table>
</form>